nhooyr.io/websocket.header.opcode (field)
14 uses
nhooyr.io/websocket (current package)
frame.go#L43: opcode opcode
frame.go#L66: h.opcode = opcode(b & 0xf)
frame.go#L128: b |= byte(h.opcode)
read.go#L167: if h.opcode != opText && h.opcode != opBinary {
read.go#L190: switch h.opcode {
read.go#L195: if h.opcode == opClose && CloseStatus(err) != -1 {
read.go#L198: return header{}, fmt.Errorf("failed to handle control frame %v: %w", h.opcode, err)
read.go#L203: err := fmt.Errorf("received unknown opcode %v", h.opcode)
read.go#L295: switch h.opcode {
read.go#L349: if h.opcode == opContinuation {
read.go#L357: return MessageType(h.opcode), c.msgReader, nil
read.go#L434: if h.opcode != opContinuation {
write.go#L292: c.writeHeader.opcode = opcode
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |